<?php
require(dirname(__FILE__) . '/includes/init.php');
$result = $db->getRow("select * from ".$ecs->table('yhd_group')."where group_id='".$_REQUEST['groupid']."'");
$group_list = $db->getAll("select * from ".$ecs->table('yhd_buy')."where group_id='".$_REQUEST['groupid']."' order by spider_id desc");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>管理中心 - 一号店团购详情 </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
</head>
<body>
<h1>
<span class="action-span1"><a href="index.php?act=main">管理中心</a> </span><span id="search_id" class="action-span1"> -   一号店团购详情 </span>
<div style="clear:both"></div>
</h1> 
<div class="list-div" id="listDiv">
<div>产品：<a href="<?php echo $result['link'];?>" target="_blank"><?php echo $result['products_name'];?></a>，商家：<?php echo $result['provider'];?></div> 
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>购买人数</th>
    <th>抓取时间</th>
  </tr>
  <?php 
	if(count($group_list)>0){
		foreach($group_list as $val){
  ?>
  <tr>
  	<td><?php echo $val['buys_num'];?></td>
	<td><?php echo date('Y-m-d H:i:s',$val['add_time']);?></td>
  </tr>
  <?php
  		}
	}
  ?>
  </table>
  </div>
</body>
</html>